<template>
	<view class="user-view">
		<view class="top-bar"><uni-navbar :fixed="true" :back="true" color="#fff" title="小程序码"></uni-navbar></view>

		<view class="container">
			<view class="img-box">
				<view class="image"><image src="/static/img/erw.jpg" mode="widthFix"></image></view>

				<view class="info-text">用微信扫一扫</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	onLoad() {
		let time = new Date();
		console.log(typeof time);
		console.log(time.toString().replace(/\:/g, '/'));
		console.log(time.toString().replace(':', '/'));
		// uni.getNetworkType({
		// 	success(res) {
		// 		console.log(res);
		// 	}
		// });
	},
	methods: {
		share(e) {
			console.log('share', e);
		},
		save(e) {
			console.log('save', e);
		}
	}
};
</script>

<style lang="scss">
.img-box {
	position: relative;
	margin: 40rpx 0;
	padding: 60rpx 30rpx;
	border-radius: 30rpx;
	background-color: #fff;

	.image {
		margin: 0 auto;
		width: 430rpx;
	}

	.info-text {
		margin: 40rpx 0 10rpx;
		text-align: center;
	}
}
</style>
